import request from "../utils/request";



//查询分类
export async function getClassify () {
    return await request({
        url: '/resource/classify',
        method: 'get'
    })
}

//查询分类名称
export async function getClassifyName (param) {
    return await request({
        url: '/resource/classify/'+param.id,
        method: 'get'
    })
}

//分页查询分类资源
export async function pageByClassify (param) {
    return await request({
        url: '/resource/'+param.current+'/'+param.size+'/'+param.id,
        method: 'get'
    })
}

//查询资源详情
export async function getResDetails (param) {
    return await request({
        url: '/resource/'+param.id,
        method: 'get'
    })
}
